package com.mmd.tencent.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "wechat.pay")
public class WechatConfig {

    // 应用id
    private String appid;

    // 密钥
    private String appSecret;

    // 商户号
    private String mchid;

    // 证书序列号
    private String merchantSerialNumber;

    // 填写classpath路径 wechatpay_4E560AF87E5E5759BA517FA56835040E45B1C661.pem
    private String cert;

    // 填写classpath路径 apiclient_key.pem
    private String clientKey;

    // jsApi支付回调
    private String jsApiNotifyUrl;

    // h5支付回调
    private String h5NotifyUrl;

    // pc支付回调
    private String pcNotifyUrl;

    // app支付回调
    private String appNotifyUrl;

    // 合单支付回调
    private String combineNotifyUrl;

    // 退款回调
    private String refundNotifyUrl;

    // apiv3key 密钥
    private String apiv3key;

}
